package com.hzp.net.netty.server;

import lombok.Data;

@Data
public class ServerInfo {

    private static ServerInfo instance = null;

    public static ServerInfo getInstance(){
        if (instance == null){
            instance = new ServerInfo();
        }
        return instance;
    }

    /**
     * 版本
     */
    private String version = "V1.0";

    /**
     * 作者
     */
    private String author = "hzp";
    /**
     * 邮箱
     */
    private String email = "hzp@qq.com";

    @Override
    public String toString() {
        return "版本：" + version + "\n作者：" + author + "\n邮箱：" + email;
    }
}
